package com.swjd.dao;

import com.swjd.pojo.User;
import com.swjd.pojo.UserKey;
import org.apache.ibatis.annotations.Param;

public interface UserMapper {

    User selectUser(UserKey key);//根据UserKey账号密码验证账号密码是否正确,并返回User对象

    int insertUser(User user);//通过User对象进行注册用户信息

    User selectUserByPhone(@Param("tel") String tel);//用户通过手机号登录,返回User对象

    int updateByUser(User user);//修改用户信息

    int deleteByPrimaryKey(String username);

    int insertSelective(User record);

    int updateByPrimaryKey(User record);
}